<?php


class Form1 extends CFormModel
{
	public $id;
	public $name;
	public $date;
	public $yes;
	public $list_check;
	public $date2;
	public $drop1;
	public $mail1;
	public $searchf;
	

	private $_identity;

	/**
	 * Declares the validation rules.
	 * The rules state that username and password are required,
	 * and password needs to be authenticated.
	 */
	public function rules()
	{
		return array(
				//array('id, name, date', 'required'),
				array('id', 'numerical',  'integerOnly' => true),
				array('name', 'length', 'min' => 3),
				array('yes', 'boolean'),
				array('date', 'date', 'format' => 'dd.mm.yyyy'),
				//array('list_check', 'in' , 'range' => array(1,2,3)),
				array('list_check','safe'),
				array('date2','safe'),
				array('drop1','safe'),
				array('mail1','email'),
				array('searchf','safe'),
		);
	}
	

	/**
	 * Declares attribute labels.
	 */
	public function attributeLabels()
	{
		return array(
				'id'=>'IDD',
				'name'=>'NAMEE',
				'date'=>'date',
		);
	}
}